<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改视频</title>
    <link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <script src="__PUBLIC__/bootstrap/js/jquery.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>

</head>

<body>
<!--自动接收updateUserInfo方法传来的User变量-->
<h1 align="center">修改信息</h1>
<div class="container">
    <form class="form-horizontal" method="post" enctype="multipart/form-data" action="updateVideo" >
        <!--隐藏id-->
        <input type="hidden" name="id" value="{$video.vid}">
        <div class="form-group ">
            <label for="videoname" class="col-md-3 control-label" >视频名称</label>
            <div class="col-md-7">
                <input type="text" class="form-control" id="videoname"
                       name="videoname" placeholder="videoname"   value="{$video.videoname}">
            </div>
        </div>

        <div class="form-group">
            <label for="uploadadmin" class="col-md-3 control-label">上传用户</label>
            <div class="col-md-3">
                <input type="text" class="form-control" id="uploadadmin"
                       name="uploadadmin" placeholder="uploadadmin" value="{$video.uploadadmin}">
            </div>
        </div>

        <div class="form-group">
            <label for="videotype" class="col-md-3 control-label">视频类型</label>
            <div class="col-md-3">
                <select class="form-control" name="videotype" id="videotype">
                    <option selected="selected" value="0">请选择</option>
                    <!--<while ($row=mysql_fetch_assoc($result)<option value='.$i.'>.$row['typename']-->
                    <!--</while>-->
                    </option>

                </select>
            </div>
        </div>


        <div class="form-group">
            <label for="image" class="col-md-3 control-label">宣传海报</label>
            <div class="col-md-7">
                <img clas="img-rounded" id="image"
                     src="__PUBLIC__/UpLoads/photo/{$video.photo}" alt="图像不存在" width="200px"/>
            </div>
        </div>
        <div class="form-group">
            <label for="photo" class="col-md-3 control-label">修改海报</label>
            <div class="col-md-3">
                <input type="file" id="photo" name="photo">
            </div>
        </div>

        <div class="form-group">
            <label for="inputintro" class="col-md-3 control-label">电影简介</label>
            <div class="col-md-7">
                <textarea name="intro" class="form-control" placeholder="input Intro" id="inputintro" rows="3">{$video.intro}</textarea>
            </div>
        </div>

        <div class="form-group">
            <label for="isfirst" class="col-md-3 control-label">首页推荐</label>
            <div class="col-md-7">
                <label class="radio-inline" >
                    <input type="radio" name="isfirst" id="isfirst" value="1"
                    <if condition="$video.isfirst eq 1">checked</if>>是
                </label>
                <label class="radio-inline">
                    <input type="radio" name="isfirst" id="isfirst2" value="0"
                    <if condition="$video.isfirst eq 0">checked</if>>否
                </label>
            </div>
        </div>

        <div class="form-group">
            <label for="address" class="col-md-3 control-label">下载地址</label>
            <div class="col-md-7">
                <input type="URL" name="address"  id="address" class="form-control" placeholder="input address"
                value="{$video.address}">
            </div>
        </div>


        <div class="form-group">
            <div class="col-sm-offset-3 col-sm-7">
                <input class="btn btn-default" type="submit" value="提交">
                <input class="btn btn-default" type="reset" value="重置">
            </div>
        </div>

        <!--<div class="form-group">-->
        <!--<label for="state" class="col-md-3 control-label">状态</label>-->
        <!--<div class="col-md-3">-->
        <!--<select class="form-control" name="state" id="state">-->
        <!--<option value="0">禁用</option>-->
        <!--<option value="1" selected>普通</option>-->
        <!--<option value="2">禁言</option>-->
        <!--</select>-->
        <!--</div>-->
        <!--</div>-->

    </form>
</div>
</body>
</html>
